package com.codejob.portal.entity.job;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.codejob.portal.entity.IdEntity;

@Entity
@Table(name = "job_CastResume")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class CastResume extends IdEntity {
	
	private Careers career;
	
	private Resume resume;

	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="careerId")
	public Careers getCareer() {
		return career;
	}

	public void setCareer(Careers career) {
		this.career = career;
	}

	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="resumeId")
	public Resume getResume() {
		return resume;
	}

	public void setResume(Resume resume) {
		this.resume = resume;
	}

	

		
}
